//
//  LagouLabel.m
//  作业2
//
//  Created by dllo on 16/7/16.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "LagouLabel.h"

@implementation LagouLabel

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+ (LagouLabel *)createLabelWithTitle:(NSString *)title
                          titleColor:(UIColor *)titleColor
                     backgroundColor:(UIColor *)backgroundColor
                               frame:(CGRect)frame
                                font:(UIFont *)font
                              center:(CGPoint)center
                       textAlignment:(NSTextAlignment)textAlignment {
    LagouLabel *label = [[LagouLabel alloc] initWithFrame:frame];
    label.text = title;
    label.textColor = titleColor;
    label.backgroundColor = backgroundColor;
    label.font = font;
    label.center = center;
    label.textAlignment = textAlignment;
    return label;

}
@end
